            <template>
                <div class="title-box">
                    <h6>人口出入记录</h6>
                </div>
                <div class="chart-box large-chart">
                    <table class="table3">
                        <thead>
                            <tr>
                                <th>姓名</th>
                                <th>角色</th>
                                <th>开门方式</th>
                                <th>时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item, idx) in tableData" :key="idx">
                                <td>{{ item.name }}</td>
                                <td>{{ item.role }}</td>
                                <td>{{ item.method }}</td>
                                <td>{{ item.time }}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </template>

            <script setup>
            import { ref } from 'vue';
            const tableData = ref([
                { name: '张梦', role: '访客', method: '人脸', time: '2018-11-01 13:51:23' },
                { name: '李阳荣', role: '业主', method: 'APP', time: '2018-11-01 13:51:23' },
                { name: '张无双', role: '访客', method: '人脸', time: '2018-11-01 13:51:23' },
                { name: '李阳', role: '业主', method: 'APP', time: '2018-11-01 13:51:23' },
            ]);
            </script>

            <style scoped>
            .title-box>button>img {
                width: 0.2rem;
                height: 0.2rem;
                margin-right: 5px;
            }
            .chart-box {
                width: 100%;
                display: flex;
                justify-content: center;
                align-items: flex-start;
                margin: 0 auto;
            }
            .large-chart {
                min-width: 600px;
                max-width: 720px;
                min-height: 400px;
                max-height: 480px;
                aspect-ratio: 3/2;
                padding: 32px 16px 32px 16px;
                /* background: rgba(14, 148, 234, 0.08); */
                border-radius: 16px;
                box-shadow: 0 4px 18px 0 rgba(14,148,234,0.08);
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
            }
            .table3 tr {
                border-top: 1px solid #0e94ea;
                background: rgba(14, 148, 234, 0.1);
            }
            .table3 thead tr {
                background: rgba(14, 148, 234, 0.4);
            }
            .table3 tr.bg-color {
                background: rgba(14, 148, 234, 0.2);
            }
            .table3 tr td:nth-child(2n+1),
            .table3 tr td:nth-child(2n+1)>p {
                width: 8rem;
                font-size: 0.92rem;
            }
            .table3 tr td:nth-child(2n),
            .table3 tr td:nth-child(2n)>p {
                width: 5.5rem;
                font-size: 0.92rem;
            }
            .table3 tr td,
            .table3 tr th {
                border-right: 1px solid #0e94ea;
                height: 2.6rem;
                line-height: 2.6rem;
                color: #222;
                text-align: center;
                font-size: 0.98rem;
            }
            .table3 tr td p {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: #222;
            }
            .table3 thead tr th {
                border-right: none;
            }
            </style>